function showLocation(province , city , town , multi) {
	
	var loc	= new Location();
	var title	= ['省份' , '地级市' , '市、县、区'];
	$.each(title , function(k , v) {
		title[k]	= '<option value="">'+v+'</option>';
	});

	var provinceElem = $('#loc_province'+ multi);
	var cityElem  = $('#loc_city'+ multi);
	var townElem = $('#loc_town'+ multi);

	provinceElem.append(title[0]);
	cityElem.append(title[1]);
	townElem.append(title[2]);


	//这行报错是为什么？
	// $("#loc_province,#loc_city,#loc_town").select2()

	provinceElem.change(function() {
		cityElem.empty();
		cityElem.append(title[1]);
		loc.fillOption('loc_city' + multi , '0,'+provinceElem.val());
		cityElem.change()
	});
	
	cityElem.change(function() {
		townElem.empty();
		townElem.append(title[2]);
		loc.fillOption('loc_town' + multi, '0,' + provinceElem.val() + ',' + cityElem.val());
        townElem.change()
	});
	
	townElem.change(function() {
		$('input[name=location_id]').val($(this).val());
	});
	
	if (province) {
		loc.fillOption('loc_province'+ multi , '0' , province);
		
		if (city) {
			loc.fillOption('loc_city' + multi, '0,'+province , city);
			
			if (town) {
				loc.fillOption('loc_town' + multi, '0,'+province+','+city , town);
			}
		}
		
	} else {
		loc.fillOption('loc_province' + multi, '0');
	}
		
}

$(function(){
		// showLocation();
	showLocation('','','','');
	// showLocation('','','','_0');
	// showLocation('','','','_1');
	showLocation('','','','_2');  //todo joezhou 这一行别删

});